 <#include "/common/freemarker/macro_common.ftl">
 
      <table class="table table-bordered table-condensed table-hover table-striped  ">
		     <thead>
				 <tr>
				    <th width=25px stylebackground-color>#</th>
					
					<th>活动名称</th>
					<th>报名截止时间</th>
					<th>创建人</th>
					<th>创建时间</th>
					<th>状态</th>
					<th>允许抽奖</th>
 
					<th>操作</th>
 
				 </tr>
			 </thead>
			 <tbody>
			 <#list rhs["dataList"] as x>
			   	 <tr>
					<td>${x_index+1}</td>		
					<td>${x.title?if_exists}</td>
					<td>${x.deadline?string("yyyy-MM-dd HH:mm:ss")}</td>
					<td><#if x.creator?exists>${eaUtils.getUserNameById(x.creator)}</#if></td>
					<td>${x.createTime?string("yyyy-MM-dd HH:mm:ss")}</td>
					
					<td>${x.getStatusText()}</td>
					<td>
						 <#if x.allowPrize?exists && x.allowPrize==1>
						 	是
						 	<#if x.creator?exists && (x.creator==Session["currentUserId"]  )>
						 	          
					     		 <br><a style="padding-left:0px" href="<@context/>ued/eventprize/eventPrize.do?eventUuid=${x.uuid?default("")}" title="配置奖品"> &nbsp;配置奖品</a>
					     		 <br><a style="padding-left:0px" href="<@context/>ued/eventprize2/manage.do?mainUuid=${x.uuid?default("")}" title="配置奖品样式2"> &nbsp;配置奖品样式(同一页面)</a>
								 <br><a style="padding-left:0px" href="<@context/>ued/eventprize3/manage.do?mainUuid=${x.uuid?default("")}" title="配置奖品样式3"> &nbsp;配置奖品样式(模式窗口)</a>					     		 
					  	    </#if>
						 <#else>
						 	否
						 		
						 </#if>

					</td>
					
					 
					<td>
				 	
	       				 <a style="padding-left:0px" href="<@context/>ued/event/viewByUuid.do?uuid=${x.uuid?default("")}" title="查看详情"><i class="fa fa-file-text"></i>&nbsp;详情</a>
					     <#if x.creator?exists && (x.creator==Session["currentUserId"]  )> <#-- || Session["currentAccount"] =="admin"-->
						 	<a style="padding-left:0px" href="<@context/>ued/event/editByUuid.do?uuid=${x.uuid?default("")}" title="修改"><i class="fa fa-edit"></i>&nbsp;修改</a>
						 	<a style="padding-left:0px" href="javascript:if (confirm('确定删除吗')){window.location.href='<@context/>ued/event/deleteByUuid.do?uuid=${x.uuid?default("")}'}" title="删除"><i class="fa fa-remove"></i>&nbsp;删除</a>
						 </#if> 			
					</td>
				 </tr>
			 </#list> 
			 </tbody>
		</table>       
		<#include "/common/freemarker/macro_pagination_ajax.ftl">
		 